﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace VLog
{
    /// <summary>
    /// 日志生产工厂
    /// </summary>
    public class VLogFactory
    {
        /// <summary>
        /// 创建日志对象
        /// </summary>
        /// <returns></returns>
        public static VLogBase CreateVLog()
        {
            return (VLogBase)System.Reflection.Assembly.Load("VLog").CreateInstance("VLog." + ConfigurationManager.AppSettings["VLog"]);
        }
    }
}
